package com.jfinal.demo.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.core.ActionInvocation;
import com.jfinal.log.Logger;

/**
 * Title:
 * Description:
 *
 * @version 2.0
 * @author: Yung Fu(FUYUNGCN AT GMAIL DOT com)
 * @since: 14-9-21 下午2:30
 */
public class InterceptorA implements Interceptor {

    Logger logger = Logger.getLogger(this.getClass());

    @Override
    public void intercept(ActionInvocation ai) {
        logger.info("================InterceptorA start ==============");
        logger.info("call " + ai.getViewPath() + " " + ai.getMethodName() + "()");
        ai.invoke();
        logger.info("================InterceptorA stop ==============");
    }


}
